package game

import (
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type SignUpRouter struct{}

func (s *SignUpRouter) InitSignUpRouter(Router *gin.RouterGroup, RouterPub *gin.RouterGroup) {
	apiRouter := Router.Group("signUp").Use(middleware.OperationRecord())
	{
		apiRouter.POST("getSignUpList", signUpApi.GetSignUpList) // 获取路由组
		apiRouter.POST("createSignUp", signUpApi.CreateSignUp)   // 创建Api
		apiRouter.DELETE("deleteSignUp", signUpApi.DeleteSignUp) // 删除Api
		apiRouter.GET("getSignUp", signUpApi.GetSignUp)          // 获取单条Api消息
		apiRouter.PUT("updateSignUp", signUpApi.UpdateSignUp)    // 更新api
		apiRouter.PUT("updateScore", signUpApi.UpdateScore)      // 更新api
	}
}
